package com.app.mapper;

import com.app.model.KeyWorkModel;
import com.app.model.ProjectModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface KeyWorkMapper extends BaseMapper<KeyWorkModel> {

    List<KeyWorkModel> getListByModel(KeyWorkModel model);

    int getCountByModel(KeyWorkModel model);

    List<KeyWorkModel> getContent(int id);

    int getCountById(int id);

    List<KeyWorkModel> keyWork(KeyWorkModel model);

    List<KeyWorkModel> List(ProjectModel model);

    List<KeyWorkModel> getAllByTime(ProjectModel model);

    int getContentByTask(KeyWorkModel model);

    int selectByYear(String year);

    List<KeyWorkModel> search(String keyword);

    List<KeyWorkModel> select(int id);
}
